﻿<Window xmlns:my="clr-namespace:FolderPickerLib;assembly=FolderPickerLib"  x:Class="SSRSTestGenerator.Views.PropertiesWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:dxd="http://schemas.devexpress.com/winfx/2008/xaml/docking"
        xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"      
        xmlns:dxb="http://schemas.devexpress.com/winfx/2008/xaml/bars"  
        xmlns:dxnb="http://schemas.devexpress.com/winfx/2008/xaml/navbar"
        xmlns:layout="http://schemas.devexpress.com/winfx/2008/xaml/layoutcontrol"
         xmlns:editors="http://schemas.devexpress.com/winfx/2008/xaml/editors"
        WindowStyle="ToolWindow" ResizeMode="CanResizeWithGrip"
        Title="Properties Window" MaxHeight="390"  Width="500"  >
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Name="rowProperties" Height="310"/>
            <RowDefinition Name="rowWindowEvents" Height="30"/>
        </Grid.RowDefinitions>

        <dxd:DockLayoutManager x:Name="DemoDockContainer"  FloatingMode="Desktop" Grid.Row="0" VerticalContentAlignment="Stretch" >
            <dxd:LayoutGroup>
                <dxd:TabbedGroup Name="propertyTabs" SelectedTabIndex="0" Width="480">
                    
                    <dxd:LayoutPanel Name="projectLayoutPanelDetails" Caption="Project Details" CaptionImage="/SSRSTestGenerator;component/Images/BO_Category.png" HeaderBarContainerControlName="SolutionBar" AllowHide="False" AllowClose="False">
                        <layout:LayoutGroup Orientation="Vertical" Name="projectLayoutGroup">
                            <layout:LayoutGroup Name="projectLayoutGroupHeader"  Header="New Project Properties" View="GroupBox" Orientation="Vertical">
                                <layout:LayoutGroup Orientation="Vertical">
                                    <layout:LayoutItem Label="Project Name            ">
                                        <TextBox Name="txtProjectName"  TextWrapping="Wrap" SelectionChanged="ValidateContents" />
                                    </layout:LayoutItem>
                                    <layout:LayoutItem Label="Reporting Service Url ">
                                        <TextBox Name="serviceUrl"  TextWrapping="Wrap" SelectionChanged="ValidateContents"/>
                                    </layout:LayoutItem>
                                    <layout:LayoutItem Label="Reporting Server Url  ">
                                        <TextBox Name="reportServerUrl"  TextWrapping="Wrap" SelectionChanged="ValidateContents"/>
                                    </layout:LayoutItem>
                                    <layout:LayoutItem Label="Saved Path               ">
                                        <WrapPanel>
                                            <TextBox Name="txtblkSavedPath" IsEnabled="False" Width="305" SelectionChanged="ValidateContents"/>
                                            <Button Name="btnFolderPath" Click="btnFolderPath_Click" Content="..." MinWidth="40"></Button>
                                        </WrapPanel>
                                    </layout:LayoutItem>
                                    <layout:LayoutItem Label="Created                   ">
                                        <TextBlock Name="txtblkCreated" />
                                    </layout:LayoutItem>
                                    <layout:LayoutGroup>
                                        <layout:LayoutItem Label="Test Framework       ">
                                            <WrapPanel Name="testFrameworkPanel">
                                                <RadioButton Name="radBtnVSTest" GroupName="testFrame" Content="MSTest" IsChecked="True"  Margin="0,0,5,0"/>
                                                <RadioButton Name="radBtnNUnitTest" GroupName="testFrame" Margin="3" Content="NUnit" />                                                
                                            </WrapPanel>
                                        </layout:LayoutItem>
                                    </layout:LayoutGroup>
                                    <layout:LayoutGroup>
                                        <layout:LayoutItem Label="Language                ">
                                            <WrapPanel IsEnabled="False">
                                                <RadioButton Name="radBtnCSharp" GroupName="lang" Content="C#" IsChecked="True"  Margin="0,0,27,0"/>
                                                <RadioButton Name="radBtnVB" GroupName="lang" Content="VB.Net" />                                                
                                            </WrapPanel>
                                        </layout:LayoutItem>
                                    </layout:LayoutGroup>
                                </layout:LayoutGroup>
                            </layout:LayoutGroup>
                        </layout:LayoutGroup>
                    </dxd:LayoutPanel>

                    <dxd:LayoutPanel Name="classLayoutPanelDetails" Caption="Class Details" CaptionImage="/SSRSTestGenerator;component/Images/BO_Category.png" HeaderBarContainerControlName="SolutionBar" AllowClose="False" AllowHide="False">
                        <layout:LayoutGroup Orientation="Vertical" Name="classLayoutGroup">
                            <layout:LayoutGroup Name="classLayoutGroupHeader"  Header="New Test Class Properties" View="GroupBox" Orientation="Vertical">
                                <layout:LayoutGroup Orientation="Vertical" >
                                    <layout:LayoutItem Label="Class Name">
                                        <TextBox Name="txtBxClassName"  Margin="35,0,0,0" SelectionChanged="ValidateContents"/>
                                    </layout:LayoutItem>
                                    <layout:LayoutItem Label="Report Name">
                                        <TextBox Name="txtBlkReportname" Margin="28,0,0,0" SelectionChanged="ValidateContents"/>
                                    </layout:LayoutItem>
                                    <layout:LayoutItem Label="Report Subfolder (optional)">
                                        <TextBox Name="txtBlkReportPath" Margin="10,0,0,0" TextWrapping="Wrap" />
                                    </layout:LayoutItem>
                                    
                                    <layout:LayoutGroup Orientation="Vertical" View="GroupBox" Header="Report Credentials (optional)">
                                        <layout:LayoutItem Label="Username" MinWidth="200">
                                            <TextBox Name="credentialsUsername" Margin="30,0,0,0" HorizontalContentAlignment="Stretch" />
                                        </layout:LayoutItem>
                                        <layout:LayoutItem Label="Password">
                                            <TextBox Name="credentialsPassword" Margin="33,0,0,0" HorizontalContentAlignment="Stretch" />
                                        </layout:LayoutItem>
                                        <layout:LayoutItem Label="Domain">
                                            <TextBox Name="credentialsDomain" Margin="41,0,0,0" HorizontalContentAlignment="Stretch" />
                                        </layout:LayoutItem>
                                    </layout:LayoutGroup>                                   
                                </layout:LayoutGroup>
                            </layout:LayoutGroup>
                        </layout:LayoutGroup>
                    </dxd:LayoutPanel>
                </dxd:TabbedGroup>
            </dxd:LayoutGroup>
        </dxd:DockLayoutManager>
        
        <WrapPanel Grid.Row="1" Margin="0,0,10,0"   VerticalAlignment="Center" HorizontalAlignment="Right">
            <Button Name="btnSave" IsEnabled="False" Content="Save" Click="btnSave_Click" MinWidth="100" Margin="0,0,15,0" ></Button>
            <Button Name="btnCancel" Content="Cancel" MinWidth="100" Click="btnCancel_Click"></Button>
        </WrapPanel>
    </Grid>
</Window>
